<%@page pageEncoding="utf-8"
contentType="text/html; charset=utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>权限管理</title>
<link rel="stylesheet" href="resources/static/css/pintuer.css">
<link rel="stylesheet" href="resources/static/css/admin.css">
<script src="resources/static/js/jquery.js"></script>
<script src="resources/static/js/pintuer.js"></script>
<!-- 引入js -->
<script type="text/javascript"
		  src="resources/static/js/basevalue.js"></script>
<script type="text/javascript"
		  src="resources/static/js/role.js"></script>
</head>
<body>

<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder">角色权限管理</strong></div>
  <div class="padding border-bottom">  
  	<button type="button" class="button border-yellow" onClick="window.location.href='role/prerole_add'"><span class="icon-plus-square-o"></span> 添加角色</button>
  </div>
  <table class="table table-hover text-center">
    <tr>
      <th width="10%">序号</th>
      <th width="35%">角色</th>
      <th width="35%">权限</th>
      <th width="20%">操作</th>
    </tr>
    
     <c:forEach items="${roles}" var="item" varStatus="status">
	   <tr>
	      <td id="index">${status.index+1 }</td>
		  <td>${item.rolename }</td>
		  <td>${item.isread }${item.isdown }</td>
		  <td><div class="button-group">
 <a id="select_update" class="button border-main" href="role/select_update?roleid=${item.roleid }" target="right">
 <span class="icon-edit"></span> 修改</a>
 <a id="del" class="button border-red" href="role/del?roleid=${item.roleid }" onClick="return del(1,1)">
 <span class="icon-trash-o"></span> 删除</a>
              </div>
          </td>
       </tr>
	</c:forEach>

  </table>
</div>
</body></html>




















<!--     <tr>
      <td>01</td>
      <td>管理层</td>
      <td>阅读；下载</td>
      <td><div class="button-group">
      <a class="button border-main" href="admin/role-add.jsp" target="right"><span class="icon-edit"></span> 修改</a>
      <a class="button border-red" href="javascript:void(0)" onClick="return del(1,1)"><span class="icon-trash-o"></span> 删除</a>
      </div></td>
    </tr>
    <tr>
      <td>02</td>
      <td>分析师</td>
      <td>阅读；下载</td>
      <td><div class="button-group">
      <a class="button border-main" href="admin/role-add.jsp"><span class="icon-edit"></span> 修改</a>
      <a class="button border-red" href="javascript:void(0)" onClick="return del(1,1)"><span class="icon-trash-o"></span> 删除</a>
      </div></td>
    </tr> -->